package net.xiduth.game.player.content.citadels;


import net.xiduth.game.player.dialogues.Dialogue;

public class LeavingCitadel extends Dialogue {


	@Override
	public void start() {
		sendDialogue(
				"This portal will bring you back to land. Do you",
				"want to leave your citadel?");

	}

	@Override
	public void run(int interfaceId, int componentId) {
		switch(stage) {
		case -1:
			stage = 0;
			sendOptionsDialogue(SEND_DEFAULT_OPTIONS_TITLE, "Leave my Citadel", "Nevermind");
			break;
		case 0:
			if(componentId == OPTION_2) {
				end();
				stage = 1;
			} else {
				stage = 2;
			}
			break;
		case 1:
			stage = -2;
			new Citadel(player);
			break;
		case 2:
				Citadel.LeaveCitadel(player);
			
			break;
		default:
			end();
			break;
		}
	}

	@Override
	public void finish() {

	}

}
